package com.design.pattern.template;

public class Tea extends CaffeineBeverage {

    boolean condiments = true;

    void brew() {
        System.out.println("用沸水浸泡茶叶");
    }

    void addCondiments() {
        System.out.println("加入柠檬");
    }

    boolean customerWantsCondiments(){
        return condiments;
    }

    public void setCondiments(boolean condiments) {
        this.condiments = condiments;
    }
}